//
//  JaneBaseTopicModel.m
//  EPA
//
//  Created by lanou3g on 16/4/22.
//  Copyright © 2016年 张静. All rights reserved.
//

#import "JaneBaseTopicModel.h"
#import "JaneTextTopicModel.h"
#import "JaneImageTopicModel.h"

@implementation JaneBaseTopicModel

+ (instancetype)modelWithDictionary:(NSDictionary *)dictionary {
    NSString *coverimg = dictionary[@"coverimg"];
    if (coverimg.length == 0) {
        JaneTextTopicModel *textTopicModel = [[JaneTextTopicModel alloc]init];
        [textTopicModel setValuesForKeysWithDictionary:dictionary];
        return textTopicModel;
    }
    JaneImageTopicModel *ImageTopicModel = [[JaneImageTopicModel alloc]init];
    [ImageTopicModel setValuesForKeysWithDictionary:dictionary];
    return ImageTopicModel;
}

- (void)setValue:(id)value forUndefinedKey:(NSString *)key {
    
}



@end
